/*
 * @Author: 
 * @Date: 2022-02-15 15:20:48
 * @LastEditors: lqj
 * @LastEditTime: 2022-02-15 15:20:48
 * @Description: 请填写简介
 */
import crypto from "crypto";

export default {
  sha1(str) {
    const shaAlog = crypto.createHash("sha1");
    shaAlog.update(str);
    return shaAlog.digest("hex");
  },
};